//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.trace.api.fence;

import com.baidu.trace.model.BaseRequest;
import com.baidu.trace.model.CoordType;
import com.baidu.trace.model.LatLng;
import java.util.List;

public final class UpdateFenceRequest extends BaseRequest {
    private Fence a;

    public final Fence getFence() {
        return this.a;
    }

    private UpdateFenceRequest(int var1, long var2, Fence var4) {
        super(var1, var2);
        this.a = var4;
    }

    public static UpdateFenceRequest buildLocalCircleRequest(int var0, long var1, long var3, String var5, String var6, LatLng var7, double var8, int var10, CoordType var11) {
        return new UpdateFenceRequest(var0, var1, CircleFence.buildLocalFence(var3, var5, var6, var7, var8, var10, var11));
    }

    public static UpdateFenceRequest buildServerCircleRequest(int var0, long var1, long var3, String var5, String var6, LatLng var7, double var8, int var10, CoordType var11) {
        return new UpdateFenceRequest(var0, var1, CircleFence.buildServerFence(var3, var5, var6, var7, var8, var10, var11));
    }

    public static UpdateFenceRequest buildServerPolygonRequest(int var0, long var1, long var3, String var5, String var6, List<LatLng> var7, int var8, CoordType var9) {
        return new UpdateFenceRequest(var0, var1, PolygonFence.buildServerFence(var3, var5, var6, var7, var8, var9));
    }

    public static UpdateFenceRequest buildServerPolylineRequest(int var0, long var1, long var3, String var5, String var6, List<LatLng> var7, int var8, int var9, CoordType var10) {
        return new UpdateFenceRequest(var0, var1, PolylineFence.buildServerFence(var3, var5, var6, var7, var8, var9, var10));
    }

    public static UpdateFenceRequest buildServerDistrictRequest(int var0, long var1, long var3, String var5, String var6, String var7, int var8) {
        return new UpdateFenceRequest(var0, var1, DistrictFence.buildServerFence(var3, var5, var6, var8, var7));
    }

    public final String toString() {
        return this.a instanceof CircleFence?"UpdateFenceRequest [tag=" + this.tag + ", serviceId=" + this.serviceId + ", circleFence=" + this.a.toString() + "]":(this.a instanceof PolygonFence?"UpdateFenceRequest [tag=" + this.tag + ", serviceId=" + this.serviceId + ", polygonFence=" + this.a.toString() + "]":(this.a instanceof PolylineFence?"UpdateFenceRequest [tag=" + this.tag + ", serviceId=" + this.serviceId + ", polylineFence=" + this.a.toString() + "]":(this.a instanceof DistrictFence?"UpdateFenceRequest [tag=" + this.tag + ", serviceId=" + this.serviceId + ", districtFence=" + this.a.toString() + "]":"UpdateFenceRequest [tag=" + this.tag + ", serviceId=" + this.serviceId + ", fence=" + this.a.toString() + "]")));
    }
}
